package com.chentf.structural.bridge.demo01;

/**
 * 手机抽象类
 */
public abstract class Phone {

    /**
     * 聚合品牌
     */
    private Brand brand;

    /**
     * 构造器
     * @param brand
     */
    public Phone(Brand brand) {
        super();
        this.brand = brand;
    }

    protected void open() {
        this.brand.open();
    }

    protected void close() {
        this.brand.close();
    }

    public void call() {
        this.brand.call();
    }
}
